VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   7230
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   10800
   LinkTopic       =   "Form1"
   ScaleHeight     =   7230
   ScaleWidth      =   10800
   StartUpPosition =   3  'Windows Default
   Begin VB.Frame Frame3 
      Caption         =   "Record"
      Height          =   2415
      Left            =   120
      TabIndex        =   25
      Top             =   4680
      Width           =   8055
      Begin VB.TextBox Text12 
         Height          =   1365
         Left            =   2160
         TabIndex        =   28
         Text            =   "Text12"
         Top             =   960
         Width           =   5775
      End
      Begin VB.TextBox Text11 
         Height          =   285
         Left            =   2160
         TabIndex        =   27
         Text            =   "Text11"
         Top             =   600
         Width           =   5775
      End
      Begin VB.TextBox Text10 
         Height          =   285
         Left            =   2160
         TabIndex        =   26
         Text            =   "Text10"
         Top             =   240
         Width           =   5775
      End
      Begin VB.Label Label12 
         Caption         =   "Recommendation"
         Height          =   255
         Left            =   120
         TabIndex        =   31
         Top             =   960
         Width           =   1935
      End
      Begin VB.Label Label11 
         Caption         =   "Medication"
         Height          =   255
         Left            =   120
         TabIndex        =   30
         Top             =   600
         Width           =   1935
      End
      Begin VB.Label Label10 
         Caption         =   "Illness"
         Height          =   255
         Left            =   120
         TabIndex        =   29
         Top             =   240
         Width           =   1935
      End
   End
   Begin VB.Frame Frame2 
      Caption         =   "Patient Address"
      Height          =   975
      Left            =   120
      TabIndex        =   15
      Top             =   3600
      Width           =   10575
      Begin VB.TextBox Text9 
         Height          =   285
         Left            =   7920
         TabIndex        =   32
         Text            =   "Text9"
         Top             =   240
         Width           =   2535
      End
      Begin VB.TextBox Text5 
         Height          =   285
         Left            =   120
         TabIndex        =   20
         Text            =   "Text5"
         Top             =   240
         Width           =   1095
      End
      Begin VB.TextBox Text6 
         Height          =   285
         Left            =   1440
         TabIndex        =   19
         Text            =   "Text6"
         Top             =   240
         Width           =   2535
      End
      Begin VB.TextBox Text7 
         Height          =   285
         Left            =   4080
         TabIndex        =   18
         Text            =   "Text7"
         Top             =   240
         Width           =   3735
      End
      Begin VB.Label Label1 
         Caption         =   "City/Town"
         Height          =   255
         Left            =   4080
         TabIndex        =   24
         Top             =   600
         Width           =   3615
      End
      Begin VB.Label Label5 
         Caption         =   "House Number"
         Height          =   255
         Left            =   120
         TabIndex        =   23
         Top             =   600
         Width           =   1215
      End
      Begin VB.Label Label6 
         Caption         =   "Province"
         Height          =   255
         Left            =   7920
         TabIndex        =   22
         Top             =   600
         Width           =   2535
      End
      Begin VB.Label Label8 
         Caption         =   "Baranggay"
         Height          =   255
         Left            =   1440
         TabIndex        =   21
         Top             =   600
         Width           =   2535
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "Patient Name"
      Height          =   1215
      Left            =   120
      TabIndex        =   8
      Top             =   2280
      Width           =   10575
      Begin VB.TextBox Text4 
         Height          =   285
         Left            =   720
         TabIndex        =   16
         Text            =   "Text4"
         Top             =   840
         Width           =   1815
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Left            =   120
         TabIndex        =   11
         Text            =   "Text1"
         Top             =   240
         Width           =   3495
      End
      Begin VB.TextBox Text2 
         Height          =   285
         Left            =   3720
         TabIndex        =   10
         Text            =   "Text2"
         Top             =   240
         Width           =   3975
      End
      Begin VB.TextBox Text3 
         Height          =   285
         Left            =   7800
         TabIndex        =   9
         Text            =   "Text3"
         Top             =   240
         Width           =   2670
      End
      Begin VB.Label Label7 
         Caption         =   "Age"
         Height          =   255
         Left            =   120
         TabIndex        =   17
         Top             =   840
         Width           =   735
      End
      Begin VB.Label Label2 
         Caption         =   "FirstName"
         Height          =   255
         Left            =   120
         TabIndex        =   14
         Top             =   600
         Width           =   1935
      End
      Begin VB.Label Label3 
         Caption         =   "Middle Name"
         Height          =   255
         Left            =   3720
         TabIndex        =   13
         Top             =   600
         Width           =   2055
      End
      Begin VB.Label Label4 
         Caption         =   "Last Name"
         Height          =   255
         Left            =   7800
         TabIndex        =   12
         Top             =   600
         Width           =   2655
      End
   End
   Begin VB.TextBox Text8 
      Height          =   285
      Left            =   8520
      TabIndex        =   6
      Text            =   "Text8"
      Top             =   1920
      Width           =   2175
   End
   Begin VB.CommandButton Command5 
      Caption         =   "Search"
      Height          =   375
      Left            =   8280
      TabIndex        =   5
      Top             =   4680
      Width           =   2415
   End
   Begin VB.CommandButton Command4 
      Caption         =   "Exit"
      Height          =   495
      Left            =   8280
      TabIndex        =   4
      Top             =   6600
      Width           =   2415
   End
   Begin VB.CommandButton Command3 
      Caption         =   "Delete"
      Height          =   375
      Left            =   8280
      TabIndex        =   3
      Top             =   6120
      Width           =   2415
   End
   Begin VB.CommandButton Command2 
      Caption         =   "Edit"
      Height          =   375
      Left            =   8280
      TabIndex        =   2
      Top             =   5640
      Width           =   2415
   End
   Begin VB.CommandButton Command1 
      Caption         =   "Save"
      Height          =   375
      Left            =   8280
      TabIndex        =   1
      Top             =   5160
      Width           =   2415
   End
   Begin MSDataGridLib.DataGrid DataGrid1 
      Bindings        =   "Form1.frx":0000
      Height          =   1335
      Left            =   120
      TabIndex        =   0
      Top             =   480
      Width           =   10575
      _ExtentX        =   18653
      _ExtentY        =   2355
      _Version        =   393216
      HeadLines       =   1
      RowHeight       =   15
      FormatLocked    =   -1  'True
      BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ColumnCount     =   12
      BeginProperty Column00 
         DataField       =   "RecordDate"
         Caption         =   "RecordDate"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   1033
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column01 
         DataField       =   "FirstName"
         Caption         =   "FirstName"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   1033
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column02 
         DataField       =   "MIddleName"
         Caption         =   "MIddleName"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   1033
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column03 
         DataField       =   "LastName"
         Caption         =   "LastName"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   1033
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column04 
         DataField       =   "Age"
         Caption         =   "Age"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   1033
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column05 
         DataField       =   "HouseNumber"
         Caption         =   "HouseNumber"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   1033
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column06 
         DataField       =   "barangay"
         Caption         =   "barangay"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   1033
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column07 
         DataField       =   "citytown"
         Caption         =   "citytown"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   1033
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column08 
         DataField       =   "Province"
         Caption         =   "Province"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   1033
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column09 
         DataField       =   "Illness"
         Caption         =   "Illness"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   1033
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column10 
         DataField       =   "medication"
         Caption         =   "medication"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   1033
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column11 
         DataField       =   "recommendation"
         Caption         =   "recommendation"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   1033
            SubFormatType   =   0
         EndProperty
      EndProperty
      SplitCount      =   1
      BeginProperty Split0 
         BeginProperty Column00 
            ColumnWidth     =   1739.906
         EndProperty
         BeginProperty Column01 
            ColumnWidth     =   1739.906
         EndProperty
         BeginProperty Column02 
            ColumnWidth     =   1739.906
         EndProperty
         BeginProperty Column03 
            ColumnWidth     =   1739.906
         EndProperty
         BeginProperty Column04 
            ColumnWidth     =   1739.906
         EndProperty
         BeginProperty Column05 
            ColumnWidth     =   1739.906
         EndProperty
         BeginProperty Column06 
            ColumnWidth     =   1739.906
         EndProperty
         BeginProperty Column07 
            ColumnWidth     =   1739.906
         EndProperty
         BeginProperty Column08 
            ColumnWidth     =   1739.906
         EndProperty
         BeginProperty Column09 
            ColumnWidth     =   1739.906
         EndProperty
         BeginProperty Column10 
            ColumnWidth     =   1739.906
         EndProperty
         BeginProperty Column11 
            ColumnWidth     =   1739.906
         EndProperty
      EndProperty
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   375
      Left            =   120
      Top             =   0
      Width           =   10575
      _ExtentX        =   18653
      _ExtentY        =   661
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   2
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   $"Form1.frx":0015
      OLEDBString     =   $"Form1.frx":00A0
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "BaranggayHealthCare"
      Caption         =   "Adodc1"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin VB.Label Label9 
      Caption         =   "Date"
      Height          =   255
      Left            =   7800
      TabIndex        =   7
      Top             =   1920
      Width           =   615
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
    If Not ( _
        Text1.Text = "" Or _
        Text2.Text = "" Or _
        Text3.Text = "" Or _
        Text4.Text = "" Or _
        Text5.Text = "" Or _
        Text6.Text = "" Or _
        Text7.Text = "" Or _
        Text8.Text = "" Or _
        Text9.Text = "" Or _
        Text10.Text = "" Or _
        Text11.Text = "" Or _
        Text12.Text = "" _
    ) Then
        Adodc1.Recordset.AddNew
        Adodc1.Recordset!RecordDate = Text8.Text
        Adodc1.Recordset!LastName = Text1.Text
        Adodc1.Recordset!FirstName = Text2.Text
        Adodc1.Recordset!MiddleName = Text3.Text
        Adodc1.Recordset!HouseNumber = Text5.Text
        Adodc1.Recordset!Barangay = Text6.Text
        Adodc1.Recordset!Citytown = Text7.Text
        Adodc1.Recordset!Province = Text9.Text
        Adodc1.Recordset!Age = Text4.Text
        Adodc1.Recordset!Illness = Text10.Text
        Adodc1.Recordset!Medication = Text11.Text
        Adodc1.Recordset!Recommendation = Text12.Text
        Adodc1.Recordset.Update
    Else
        MsgBox "Cannot continue!"
    End If
End Sub

Sub clean()
    Text1.Text = ""
    Text2.Text = ""
    Text3.Text = ""
    Text4.Text = ""
    Text5.Text = ""
    Text6.Text = ""
    Text7.Text = ""
    Text8.Text = ""
    Text9.Text = ""
    Text10.Text = ""
    Text11.Text = ""
    Text12.Text = ""
End Sub

Private Sub Form_Load()
    clean
End Sub
